
package com.ywjg.serviceimp;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ywjg.dao.MakerMessageDao;
import com.ywjg.model.MakerMessage;
import com.ywjg.service.IMakerMessageService;
@Service
public class MakerMessageService implements IMakerMessageService{
	@Resource
	MakerMessageDao makerMessageDao;
	
	public MakerMessage publish(MakerMessage makerMessage) {
		MakerMessage save = makerMessageDao.save(makerMessage);
	    return save;
	}
	
	public List<MakerMessage> findUserMakeMessage(int appUserId) {
		List<MakerMessage> find = makerMessageDao.findByappUserId(appUserId);
	    return find;
	}
	
	
	public List<MakerMessage> findAllMakeMessage() {
	    List<MakerMessage> findAll = makerMessageDao.findAll();
	    return findAll;
	}
	
	
	
	
	
	
}
